using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Ent.Voice.Show;

public partial class Member_Message : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            HtmlLink css = new HtmlLink();
            css.Href = ConfigurationManager.AppSettings["BaseUrl"] + "/styles/dj/home.css";
            css.Attributes["rel"] = "stylesheet";
            css.Attributes["type"] = "text/css";
            Page.Header.Controls.Add(css);

            if (Session["USERID"] != null)
            {
                Event[] evs = Event.GetUserEvents(Session["USERID"].ToString(), -1);
                if (evs != null && evs.Length != 0)
                {
                    lblMyEvent.Text = Common.SerializeForUpdate(evs, "list_subheader", true);
                    lblHeader.Text = ResourceHelper.Get("MSG_SearchHeader") + " 1 to " + Convert.ToInt32(evs.Length) + " of " + evs.Length.ToString() + " records.";
                }
                else
                    lblMyEvent.Text = Common.GetAlertText(ResourceHelper.Get("MSG_NoEventCreated"));
            }
        }
    }
}
